﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xmart.Action;

namespace Xmart.Action
{
    public interface IAction
    {
        /// <summary>
        /// 执行
        /// </summary>
        /// <param name="name"></param>
        /// <param name="args"></param>
        /// <returns></returns>
        ActionResult Execute(string name, params object[] args);

        /// <summary>
        /// 执行查询
        /// </summary>
        /// <param name="name"></param>
        /// <param name="args"></param>
        /// <returns></returns>
        ActionResult ExecuteQuery(string name, Type target, params object[] args);
    }
}
